<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        /*  function f1() {
              console.log('f1');
          }
          f1();
          function f2() {
              console.log('f2');
              return 'f22';
          }
          console.log(f2());*/


        /*  function f3(a) {
              console.log('f3');
              console.log(a);
              return 'thisf3';
          }
          console.log(f3(123));

          function f4(a) {
              console.log('f4');
              console.log(a);
              return 'thisf4';
          }
          console.log(f4(456));*/


        /*  var fun=function(){
            console.log("匿名函数");
          }
          function my(fn) {
              console.log("开始");
              fn();
          }
            my(fun);*/

        var fun = function () {
            console.log('匿名函数');
        }

        function work(i) {
            console.log('开始');
        }

        // work(fun());
        fun();


    </script>
</head>
<body>

</body>
</html>